package com.globaldom.utils;

import java.util.Map;

public class Constants {
	public static String PERSONID = "14";
	public final static String ID = "14";
	public static boolean local=true;
	public final static String STATUS = "status";
	public final static String CODE = "code";
	public final static String DATA = "data";

	public final static String mainpage = "mainpage";
	public final static String startpage = "mainpage";
	public final static String gamepage = "resource";

	public static final int CIVTIP = 1;
	public static final int MILTIP = 2;
	public final static int TERTIP = 4;
	public final static int WARTIP = 8;
	public final static int GAMETIP = 16;
	public final static int BOOGIEWOOGITIP = 32;
	// private static final Logger log =
	// Logger.getLogger(CombatantGetAllController.class.getName());
	// 64
	// 128
	// 256
	// 512
	// 1024
	// 2048
	// 4096
	// 8192
	// 16384
	public static enum Military {
		ARMY, TANK, AIR, SPY, SUB
	}

	public static enum CivilResource {
		FOOD, WATER, HAY, WOOD, SILVER, GOLD
	}

	public static enum LocationType {
		HOME, FILL, SATELLITE, CAPTURED, ALLY, ENEMY, CONSTRUCTION, WAR
	}

	public void addSetting(int setting) {

	}

	@SuppressWarnings("unchecked")
	public static void LoginRedirect(Map map) {
		map.put(Constants.STATUS, "-ER");
		map.put(Constants.CODE, "401");
	}

	@SuppressWarnings("unchecked")
	public static void InvalidData(Map map) {
		map.put(Constants.STATUS, "-ER");
		map.put(Constants.CODE, "401");
	}

	@SuppressWarnings("unchecked")
	public static void UnChanged(Map map) {
		map.put(Constants.STATUS, "-ER");
		map.put(Constants.CODE, "304");
	}

	@SuppressWarnings("unchecked")
	public static void ServerError(Map map) {
		map.put(Constants.STATUS, "-ER");
		map.put(Constants.CODE, "501");
	}

	@SuppressWarnings("unchecked")
	public static void NotFound(Map map) {
		map.put(Constants.STATUS, "-ER");
		map.put(Constants.CODE, "404");
	}
}
